<template>
    <RouterView>

    </RouterView>
</template>
<script setup lang="ts">
    import io from 'socket.io-client'
    const url = "http://192.168.1.63:5000"
    const server = io(url,{
        path:"/io"
    })
    server.on('connection',(socket)=>{
        console.log("链接成功!",socket)
    })
    server.on('disconnect',(socket)=>{
        console.log("断开连接")
    })
</script>